<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%@page import="java.text.SimpleDateFormat"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>  
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>报销审批</title>
    
  	<link rel="stylesheet" href="css/four.css" type="text/css"></link>
  	<script type="text/javascript" src="js/win_center.js"></script>
  	<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  	<script type="text/javascript" src="js/hidden.js"></script>
  	
  	<script type="text/javascript">
  		function selectAll(){
  			var updateClaim= document.getElementsByName("updateClaim");
  			for(var i=0;i<updateClaim.length;i++){
  				var e=updateClaim[i];
  				e.checked=!e.checked;
  			}
  		}
  	</script>
  <script type="text/javascript" src="js/jquery-1.6.js"></script></head>
  <body>
    <div class="topTitle">&nbsp;<img src="images/main_28.gif"/>&nbsp;报销审批</div>
  	<form action="" method="post">
  	<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">
 		 <tr> 
    		<td nowrap="nowrap" class="td_top" align="left"">以下为您的报销信息</td>
  		</tr>
  	</table>
  	</form> 
  		<table class="table_list">
 			<s:if test="claimList.size==0">
	 			<tr> 
				    <td class="td_scheduleList_top" align="center">报销单编号
				    	<input type="hidden" name="employee.userId" value="${employee.userId}" />
				    </td>
				    <td class="td_scheduleList_top" align="center">报销金额</td>
				    <td class="td_scheduleList_top" align="center">报销理由</td>
				    <td class="td_scheduleList_top" align="center">处理情况</td>
	 			</tr>
 				<tr>
 					<td class="td_list" colspan="4" align="center">您还没有提交过报销申请</td>
 				</tr>
 			</s:if>
 			<s:else>
	 			<display:table decorator="org.displaytag.decorator.CheckboxTableDecorator" name="claimList"  requestURI="/getClaimByUser" class="table_list" id="claim" defaultorder="descending" size="resultSize" pagesize="10">
			  			<display:column property="cvId" title="报销单编号" headerClass="td_scheduleList_top" class="td_list" sortable="true"></display:column>
			  			<display:column property="account" title="报销金额"  headerClass="td_scheduleList_top" class="td_list"></display:column>
			  			<display:column property="cvItem" title="报销理由"  headerClass="td_scheduleList_top" class="td_list"></display:column>
			  			<display:column title="处理情况"  headerClass="td_scheduleList_top" class="td_list">
								<c:if test="${claim.status== '0'}">  
									<font color="gray">未处理</font>
								</c:if>   
								<c:if test="${claim.status== '1'}">  
									通过
								</c:if>  
								<c:if test="${claim.status== '2'}">  
									<font color="red">被拒绝</font> 
								</c:if>  
			  			</display:column>
			  	</display:table>
 			</s:else>
  		</table>
  </body>
</html>
